package org.mycub.server.dataprovider;

import java.util.List;

import org.mycub.server.data.models.InternetAccess;
import org.mycub.server.mongodb.MongoDB;

public class InternetAccessesProvider {

	/**
	 * @param args
	 */
	
	private List<InternetAccess> netAccesses;

	public List<InternetAccess> getParkings(double longitude, double latitude, double rayon){
		
		List<InternetAccess> netAccesses = MongoDB.dataStore.find(InternetAccess.class).
				field("location").within(longitude,latitude,rayon).asList();
		
		return netAccesses;
	}

	public List<InternetAccess> getNetAccesses() {
		return netAccesses;
	}

	public void setNetAccesses(List<InternetAccess> netAccesses) {
		this.netAccesses = netAccesses;
	}

}
